package com.xywl.escort.view.order.subscribe;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.DeliveryOrderResp;
import com.xywl.escort.bean.GetOrderInfoResp;
import com.xywl.escort.bean.SubscribeOrderResp;

public interface SubscribeOrderContract {

    interface Presenter extends BasePresenter {
        void takeView(SubscribeOrderContract.View view);

        void loadSubscribeOrderList(int pageNum);

        void delOrder(String id, int position);

        void cancelOrder(String id, int position);

        void getOrderInfo(String id);
    }

    interface View extends BaseView<Presenter> {

        void loadSubscribeOrderListSuccess(SubscribeOrderResp.DataBean dataBean);

        void loadSubscribeOrderListFailure();

        void delOrderSuccess(BaseResp resp, int position);

        void delOrderFailure(String msg);

        void cancelOrderSuccess(BaseResp resp, int position);

        void cancelOrderFailure(String msg);

        void getOrderInfoSuccess(GetOrderInfoResp.DataBean dataBean);

        void getOrderInfoFailure(String msg);

    }
}
